//tcp_sock.h by cme
#ifndef _TCP_SOCK_H_
#define _TCP_SOCK_H_
#include <fcntl.h>
#ifdef _WIN32
#include <io.h>
#include <Winsock.h>
#include <Winbase.h>
#pragma comment(lib, "Ws2_32.lib")
#else
#include <sys/socket.h>
#include <netinet/in.h>
#endif
void init_network();
int tcp_connect(const char* szIP, unsigned short port);
int tcp_listen_port(unsigned short uPort);
int tcp_close(int sock);
#endif

